﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebApplication2
{
    public partial class WebForm2 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if(PreviousPage != null)
            { 
            string namepost = Request.Form["Textbox1"];
            string passwordpost = Request.Form["Textbox2"];
            Response.Write($"你的用户名post:{namepost}   密码post：{passwordpost}");
            }
            else
            {
            string nameget = Request.QueryString["Textbox1"];
            string passwordget = Request.QueryString["Textbox2"];
            Response.Write($"你的用户名get:{nameget}   密码get：{passwordget}");
            }
        }
    }
}